﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPageBlank.master"  CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
<script type="text/javascript" src="lib/jquery-1.7.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript">
	$j = jQuery.noConflict();
	$j(function() {
		$j(".btnLogin").button();
	});

	function CheckTab(s, now) {
		if (s.keyCode == 9) {
			if (now == "id")
				$('txtPassword').focus();
			else if (now == "psw")
				$('<%= btnLogin.ClientID %>').focus();
		
			return false;
		}
	}

	function CheckEnter(s, now) {
		if (s.keyCode == 13) {
			if (now == "id")
				$('txtPassword').focus();
			else if(now == "psw")
				$('<%= btnLogin.ClientID %>').click();
			return false;
		}
	}
</script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">

<div class="divLogin">
	<div class="divLoginContent">
		<table class="tableLogin">
			<tr>
				<td class="style1">
					<input type="text" name="txtId" id="txtId" class="txtLogin" onkeydown="return CheckTab(event, 'id')" onkeypress="return CheckEnter(event, 'id')"/>
				</td>
				<td rowspan="2" style="width:70px;">
					<asp:Button ID="btnLogin" name="btnLogin" Text="로그인" class="btnLogin" runat="Server" OnClick="submit" />
				</td>
			</tr>
			<tr>
				<td class="style1">
					<input type="password" name="txtPassword" id="txtPassword" class="txtPassword" onkeypress="return CheckEnter(event, 'psw')" onkeydown="return CheckTab(event, 'psw')" />
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<a href="Register.aspx" title="회원가입">회원가입</a>	
					/
					<a href="#">비밀번호 찾기</a>
				</td>
			</tr>
			<%--<div CssClass="divMsg">--%>
		</table>
		<div style="position:relative; margin-top:20px; ">
				<asp:Label runat="Server" ID="lblMessage" Font-Bold="true" ForeColor="Red"></asp:Label>
		</div>
	</div>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Dialog" runat="Server">

</asp:Content>